#include <forward_list>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>

using namespace std;

int main(int argc, char **argv) {
  vector<string> _string(5, "10");
  int sum1 = 0;
  double sum2 = 0.0;
  for (int i = 0; i < _string.size(); ++i) {
    sum1 += stoi(_string[i]);
    sum2 += stod(_string[i]);
    cout << stod(_string[i]) << endl;
  }
  cout << "int和为：" << sum1 << endl;
  cout << "double和为：" << sum2 << endl;

  return 0;
}